How can I modify my JavaScript to prevent it from looping and re-executing multiple times

join shbcf.ru